{template "content","head"}
<link rel="stylesheet" href="{LAY_PATH}css/layui.css">
<div>
    <table class="layui-table" style="width: 80%;margin:auto">
        {pc:content action="category" catid="0"}
        {loop $data $r}
        <tr>
            <td colspan="10"><a href="{$r[url]}" style="font-weight: 700">{$r[catname]}</a></td>
        </tr>
        <tr>
            {pc:content action="category" catid="$r[catid]" return="data2"}
            {loop $data2 $v}
            <td><a href="{$v[url]}">{$v[catname]}</a></td>
            {/loop}
            {/pc}
        </tr>
        {/loop}
        {/pc}
    </table>
</div>


{template "content","foot"}